package com.dianjing.dianjing.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 需求表
 * </p>
 *
 * @author LBG
 * @since 2022-11-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Demand对象", description="需求表")
public class Demand implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "需求id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "需求方id")
    private Long demandUserId;

    @ApiModelProperty(value = "需求方昵称")
    private String name;

    @ApiModelProperty(value = "需求方头像")
    private String icon;

    @ApiModelProperty(value = "需求标题")
    private String title;

    @ApiModelProperty(value = "需求内容")
    private String content;

    @ApiModelProperty(value = "需求类型，0-角色，1-场景，2-Q版，3-水彩，4-二次元")
    private Integer type;

    @ApiModelProperty(value = "需求报价")
    private Double price;

    @ApiModelProperty(value = "需求ddl")
    private Date ddl;

    @ApiModelProperty(value = "联系方式")
    private String phone;

    @ApiModelProperty(value = "需求状态 0-待响应 1-待接受 2-已接受 3-被拒绝")
    private Integer state;

    @ApiModelProperty(value = "画师id")
    private Long painterId;
}
